package com.joker.orange.service;

import com.joker.orange.domain.HotSearchHistory;
import com.joker.orange.domain.vo.HotSearchHistoryVo;
import com.joker.orange.domain.bo.HotSearchHistoryBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 热搜和历史Service接口
 *
 * @author Joker
 * @date 2024-07-04
 */
public interface IHotSearchHistoryService {

    /**
     * 查询热搜和历史
     */
    HotSearchHistoryVo queryById(Long id);

    /**
     * 查询热搜和历史列表
     */
    TableDataInfo<HotSearchHistoryVo> queryPageList(HotSearchHistoryBo bo, PageQuery pageQuery);

    /**
     * 查询热搜和历史列表
     */
    List<HotSearchHistoryVo> queryList(HotSearchHistoryBo bo);

    /**
     * 新增热搜和历史
     */
    Boolean insertByBo(HotSearchHistoryBo bo);

    /**
     * 修改热搜和历史
     */
    Boolean updateByBo(HotSearchHistoryBo bo);

    /**
     * 校验并批量删除热搜和历史信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean deleteSearchHistory();
}
